<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript"  src="js/jquery-3.3.1.js"></script>

 
	<script type="text/javascript"  src="js/login.js"></script>
 	<style type="text/css">
	   .login{
	       position: relative;
	       left:300px;
	       top:200px;
	       border: 1px solid blue;
	       width:400px;
	   }
	   .title{
	      background: blue;
	      line-height: 38px;
	      color:white;
	      font-size: 21px;
	      font-weight: bolder;
	      text-align: center;
	   }
	   p{
	     margin-left: 30px;
	   }
	</style> 
  </head>
  
  <body>
    <form action="UserServlet" method="post">
       <div class="login">
          <div class="title">
             	 用户登录
          </div>
          <p>
             <label for="uname">用户名：</label>
             <input type="text" id="uname" name="uname" onblur="checkUserName()"/>
             <span id="userMsg"></span>
          </p>
          <p>
             <label for="upwd">密&nbsp;&nbsp;码：</label>
             <input type="password" id="upwd" name="upwd" onblur="checkPwd()"/>
               <span id="pwdMsg"></span>
          </p>
          <p>
             <input type="submit" value="登录" onclick="check()"/>
             <a href="UserServlet?flag = uppwd">修改密码</a>
          </p>
       </div>
    </form>
  </body>
</html>